package com.springboot.study.tests.designpattern.template;

/**
 * @Author: guodong
 * @Date: 2021/4/26 13:28
 * @Version: 1.0
 * @Description:
 */
public class IntOperate extends TemplateMethod{

    @Override
    public void doWork(){
        int num = 0;
        for (int i=0 ; i<10000000;i++ ){
            num += i;
        }
        System.out.println(num);
    }

}